package com.xneure.database.dao.category;

import org.apache.ibatis.annotations.DeleteProvider;
import com.xneure.database.SqlMappingProvider;
import com.xneure.utils.bean.GUID;

public interface DeleteDao<T>extends UpdateDao<T>{
	@DeleteProvider(type = SqlMappingProvider.class,method = "delete")
	public int delete(T obj);

	@DeleteProvider(type = SqlMappingProvider.class,method = "deleteId")
	public int deleteId(Class<T> cls,GUID... ids);

	@DeleteProvider(type = SqlMappingProvider.class,method = "deleteById")
	public int deleteById(Class<T> cls,String... ids);
}
